home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
win
/
batsh153.zip
/
SAMPLE1.BSH
< prev
next >
Wrap
Text File
|
1995-02-09
|
592b
|
33 lines
; ask and show variables
wait off
label
icon exclamation
ask $$USER Enter your name please:
if errorlevel 1 set $$USER=Mr.NoName
label %$$USER%
:repeat
ask $PASSWORD Hi %$$USER% Give me your password please (! use a fake one,it will be displayed later):
if errorlevel 2 goto repeat
set PASS=%$PASSWORD%
set $PASSWORD=
ask $PASSWORD Please Confirm:
if %$PASSWORD%==%PASS% goto ok
Icon stop
label Sorry but not OK
wait 3
exit
:ok
label OK
message
Username: %$$USER%
Password: %PASS%
DOS environment:
windir: %WINDIR%
path: %PATH%
temp: %TEMP%
.15